package com.aaa.util;

public class EmployeeContext {
    private static final ThreadLocal<Integer> employeeIdHolder = new ThreadLocal<>();

    public static void setEmployeeId(Integer employeeId) {
        employeeIdHolder.set(employeeId);
    }

    public static Integer getEmployeeId() {
        return employeeIdHolder.get();
    }

    public static void clear() {
        employeeIdHolder.remove();
    }
}
